package com.example.demo

import com.example.demo.domain.entity.UserEntity
import com.example.demo.mapper.UserMapper
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner

@RunWith(SpringRunner::class)
@SpringBootTest
class DemoApplicationTests {

    @Autowired
    lateinit var mapper: UserMapper

    @Test
    fun contextLoads() {

        mapper.saveOne(UserEntity(name = "fbl", age = 15, phone = "134343412"))
    }

}
